package com.openbravo.ws.customers;

import java.net.URL;
import java.rmi.RemoteException;
import java.util.Enumeration;
import java.util.Properties;
import java.util.Vector;
import javax.xml.namespace.QName;
import org.apache.axis.AxisFault;
import org.apache.axis.NoEndPointException;
import org.apache.axis.client.Call;
import org.apache.axis.client.Stub;
import org.apache.axis.constants.Style;
import org.apache.axis.constants.Use;
import org.apache.axis.description.OperationDesc;
import org.apache.axis.description.ParameterDesc;
import org.apache.axis.encoding.DeserializerFactory;
import org.apache.axis.encoding.ser.ArrayDeserializerFactory;
import org.apache.axis.encoding.ser.ArraySerializerFactory;
import org.apache.axis.encoding.ser.BeanDeserializerFactory;
import org.apache.axis.encoding.ser.BeanSerializerFactory;
import org.apache.axis.encoding.ser.EnumDeserializerFactory;
import org.apache.axis.encoding.ser.EnumSerializerFactory;
import org.apache.axis.encoding.ser.SimpleDeserializerFactory;
import org.apache.axis.encoding.ser.SimpleListDeserializerFactory;
import org.apache.axis.encoding.ser.SimpleListSerializerFactory;
import org.apache.axis.encoding.ser.SimpleSerializerFactory;
import org.apache.axis.soap.SOAPConstants;
import org.apache.axis.utils.JavaUtils;

public class WebServiceSoapBindingStub extends Stub
  implements WebServiceImpl
{
  private Vector cachedSerClasses = new Vector();
  private Vector cachedSerQNames = new Vector();
  private Vector cachedSerFactories = new Vector();
  private Vector cachedDeserFactories = new Vector();
  static OperationDesc[] _operations = new OperationDesc[9];

  private static void _initOperationDesc1()
  {
    OperationDesc localOperationDesc = new OperationDesc();
    localOperationDesc.setName("getCustomers");
    ParameterDesc localParameterDesc = new ParameterDesc(new QName("", "clientId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("http://localhost:8180/openbravo/services/WebService", "ArrayOf_tns1_Customer"));
    localOperationDesc.setReturnClass([Lcom.openbravo.ws.customers.Customer.class);
    localOperationDesc.setReturnQName(new QName("", "getCustomersReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[0] = localOperationDesc;
    localOperationDesc = new OperationDesc();
    localOperationDesc.setName("getCustomer");
    localParameterDesc = new ParameterDesc(new QName("", "clientId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "customerId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("/services/WebService", "Customer"));
    localOperationDesc.setReturnClass(Customer.class);
    localOperationDesc.setReturnQName(new QName("", "getCustomerReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[1] = localOperationDesc;
    localOperationDesc = new OperationDesc();
    localOperationDesc.setName("getCustomer");
    localParameterDesc = new ParameterDesc(new QName("", "clientId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "name"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "searchKey"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("/services/WebService", "Customer"));
    localOperationDesc.setReturnClass(Customer.class);
    localOperationDesc.setReturnQName(new QName("", "getCustomerReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[2] = localOperationDesc;
    localOperationDesc = new OperationDesc();
    localOperationDesc.setName("updateCustomer");
    localParameterDesc = new ParameterDesc(new QName("", "customer"), 1, new QName("/services/WebService", "BusinessPartner"), BusinessPartner.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
    localOperationDesc.setReturnClass(Boolean.TYPE);
    localOperationDesc.setReturnQName(new QName("", "updateCustomerReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[3] = localOperationDesc;
    localOperationDesc = new OperationDesc();
    localOperationDesc.setName("getCustomerAddresses");
    localParameterDesc = new ParameterDesc(new QName("", "clientId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "customerId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("http://localhost:8180/openbravo/services/WebService", "ArrayOf_xsd_int"));
    localOperationDesc.setReturnClass([I.class);
    localOperationDesc.setReturnQName(new QName("", "getCustomerAddressesReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[4] = localOperationDesc;
    localOperationDesc = new OperationDesc();
    localOperationDesc.setName("getCustomerLocation");
    localParameterDesc = new ParameterDesc(new QName("", "clientId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "customerId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "locationId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("/services/WebService", "Location"));
    localOperationDesc.setReturnClass(Location.class);
    localOperationDesc.setReturnQName(new QName("", "getCustomerLocationReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[5] = localOperationDesc;
    localOperationDesc = new OperationDesc();
    localOperationDesc.setName("updateAddress");
    localParameterDesc = new ParameterDesc(new QName("", "addr"), 1, new QName("/services/WebService", "Location"), Location.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
    localOperationDesc.setReturnClass(Boolean.TYPE);
    localOperationDesc.setReturnQName(new QName("", "updateAddressReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[6] = localOperationDesc;
    localOperationDesc = new OperationDesc();
    localOperationDesc.setName("getCustomerContact");
    localParameterDesc = new ParameterDesc(new QName("", "clientId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "customerId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "contactId"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("/services/WebService", "Contact"));
    localOperationDesc.setReturnClass(Contact.class);
    localOperationDesc.setReturnQName(new QName("", "getCustomerContactReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[7] = localOperationDesc;
    localOperationDesc = new OperationDesc();
    localOperationDesc.setName("updateContact");
    localParameterDesc = new ParameterDesc(new QName("", "contact"), 1, new QName("/services/WebService", "Contact"), Contact.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "username"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localParameterDesc = new ParameterDesc(new QName("", "password"), 1, new QName("http://www.w3.org/2001/XMLSchema", "string"), String.class, false, false);
    localOperationDesc.addParameter(localParameterDesc);
    localOperationDesc.setReturnType(new QName("http://www.w3.org/2001/XMLSchema", "boolean"));
    localOperationDesc.setReturnClass(Boolean.TYPE);
    localOperationDesc.setReturnQName(new QName("", "updateContactReturn"));
    localOperationDesc.setStyle(Style.RPC);
    localOperationDesc.setUse(Use.ENCODED);
    _operations[8] = localOperationDesc;
  }

  public WebServiceSoapBindingStub()
    throws AxisFault
  {
    this(null);
  }

  public WebServiceSoapBindingStub(URL paramURL, javax.xml.rpc.Service paramService)
    throws AxisFault
  {
    this(paramService);
    this.cachedEndpoint = paramURL;
  }

  public WebServiceSoapBindingStub(javax.xml.rpc.Service paramService)
    throws AxisFault
  {
    if (paramService == null)
      this.service = new org.apache.axis.client.Service();
    else
      this.service = paramService;
    ((org.apache.axis.client.Service)this.service).setTypeMappingVersion("1.2");
    BeanSerializerFactory localBeanSerializerFactory = BeanSerializerFactory.class;
    BeanDeserializerFactory localBeanDeserializerFactory = BeanDeserializerFactory.class;
    EnumSerializerFactory localEnumSerializerFactory = EnumSerializerFactory.class;
    EnumDeserializerFactory localEnumDeserializerFactory = EnumDeserializerFactory.class;
    ArraySerializerFactory localArraySerializerFactory = ArraySerializerFactory.class;
    ArrayDeserializerFactory localArrayDeserializerFactory = ArrayDeserializerFactory.class;
    SimpleSerializerFactory localSimpleSerializerFactory = SimpleSerializerFactory.class;
    SimpleDeserializerFactory localSimpleDeserializerFactory = SimpleDeserializerFactory.class;
    SimpleListSerializerFactory localSimpleListSerializerFactory = SimpleListSerializerFactory.class;
    SimpleListDeserializerFactory localSimpleListDeserializerFactory = SimpleListDeserializerFactory.class;
    QName localQName1 = new QName("/services/WebService", "BusinessPartner");
    this.cachedSerQNames.add(localQName1);
    Object localObject = BusinessPartner.class;
    this.cachedSerClasses.add(localObject);
    this.cachedSerFactories.add(localBeanSerializerFactory);
    this.cachedDeserFactories.add(localBeanDeserializerFactory);
    localQName1 = new QName("/services/WebService", "Contact");
    this.cachedSerQNames.add(localQName1);
    localObject = Contact.class;
    this.cachedSerClasses.add(localObject);
    this.cachedSerFactories.add(localBeanSerializerFactory);
    this.cachedDeserFactories.add(localBeanDeserializerFactory);
    localQName1 = new QName("/services/WebService", "Customer");
    this.cachedSerQNames.add(localQName1);
    localObject = Customer.class;
    this.cachedSerClasses.add(localObject);
    this.cachedSerFactories.add(localBeanSerializerFactory);
    this.cachedDeserFactories.add(localBeanDeserializerFactory);
    localQName1 = new QName("/services/WebService", "Location");
    this.cachedSerQNames.add(localQName1);
    localObject = Location.class;
    this.cachedSerClasses.add(localObject);
    this.cachedSerFactories.add(localBeanSerializerFactory);
    this.cachedDeserFactories.add(localBeanDeserializerFactory);
    localQName1 = new QName("http://localhost:8180/openbravo/services/WebService", "ArrayOf_tns1_Contact");
    this.cachedSerQNames.add(localQName1);
    localObject = [Lcom.openbravo.ws.customers.Contact.class;
    this.cachedSerClasses.add(localObject);
    localQName1 = new QName("/services/WebService", "Contact");
    QName localQName2 = null;
    this.cachedSerFactories.add(new ArraySerializerFactory(localQName1, localQName2));
    this.cachedDeserFactories.add(new ArrayDeserializerFactory());
    localQName1 = new QName("http://localhost:8180/openbravo/services/WebService", "ArrayOf_tns1_Customer");
    this.cachedSerQNames.add(localQName1);
    localObject = [Lcom.openbravo.ws.customers.Customer.class;
    this.cachedSerClasses.add(localObject);
    localQName1 = new QName("/services/WebService", "Customer");
    localQName2 = null;
    this.cachedSerFactories.add(new ArraySerializerFactory(localQName1, localQName2));
    this.cachedDeserFactories.add(new ArrayDeserializerFactory());
    localQName1 = new QName("http://localhost:8180/openbravo/services/WebService", "ArrayOf_tns1_Location");
    this.cachedSerQNames.add(localQName1);
    localObject = [Lcom.openbravo.ws.customers.Location.class;
    this.cachedSerClasses.add(localObject);
    localQName1 = new QName("/services/WebService", "Location");
    localQName2 = null;
    this.cachedSerFactories.add(new ArraySerializerFactory(localQName1, localQName2));
    this.cachedDeserFactories.add(new ArrayDeserializerFactory());
    localQName1 = new QName("http://localhost:8180/openbravo/services/WebService", "ArrayOf_xsd_int");
    this.cachedSerQNames.add(localQName1);
    localObject = [I.class;
    this.cachedSerClasses.add(localObject);
    localQName1 = new QName("http://www.w3.org/2001/XMLSchema", "int");
    localQName2 = null;
    this.cachedSerFactories.add(new ArraySerializerFactory(localQName1, localQName2));
    this.cachedDeserFactories.add(new ArrayDeserializerFactory());
  }

  protected Call createCall()
    throws RemoteException
  {
    try
    {
      Call localCall = super._createCall();
      if (this.maintainSessionSet)
        localCall.setMaintainSession(this.maintainSession);
      if (this.cachedUsername != null)
        localCall.setUsername(this.cachedUsername);
      if (this.cachedPassword != null)
        localCall.setPassword(this.cachedPassword);
      if (this.cachedEndpoint != null)
        localCall.setTargetEndpointAddress(this.cachedEndpoint);
      if (this.cachedTimeout != null)
        localCall.setTimeout(this.cachedTimeout);
      if (this.cachedPortName != null)
        localCall.setPortName(this.cachedPortName);
      Enumeration localEnumeration = this.cachedProperties.keys();
      while (localEnumeration.hasMoreElements())
      {
        String str = (String)localEnumeration.nextElement();
        localCall.setProperty(str, this.cachedProperties.get(str));
      }
      synchronized (this)
      {
        if (firstCall())
        {
          localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
          localCall.setEncodingStyle("http://schemas.xmlsoap.org/soap/encoding/");
          for (int i = 0; i < this.cachedSerFactories.size(); i++)
          {
            Class localClass = (Class)this.cachedSerClasses.get(i);
            QName localQName = (QName)this.cachedSerQNames.get(i);
            Object localObject1 = this.cachedSerFactories.get(i);
            Object localObject2;
            Object localObject3;
            if ((localObject1 instanceof Class))
            {
              localObject2 = (Class)this.cachedSerFactories.get(i);
              localObject3 = (Class)this.cachedDeserFactories.get(i);
              localCall.registerTypeMapping(localClass, localQName, (Class)localObject2, (Class)localObject3, false);
            }
            else
            {
              if (!(localObject1 instanceof javax.xml.rpc.encoding.SerializerFactory))
                continue;
              localObject2 = (org.apache.axis.encoding.SerializerFactory)this.cachedSerFactories.get(i);
              localObject3 = (DeserializerFactory)this.cachedDeserFactories.get(i);
              localCall.registerTypeMapping(localClass, localQName, (org.apache.axis.encoding.SerializerFactory)localObject2, (DeserializerFactory)localObject3, false);
            }
          }
        }
      }
      return localCall;
    }
    catch (Throwable localThrowable)
    {
    }
    throw new AxisFault("Failure trying to get the Call object", localThrowable);
  }

  public Customer[] getCustomers(String paramString1, String paramString2, String paramString3)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[0]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "getCustomers"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramString1, paramString2, paramString3 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return (Customer[])(Customer[])localObject;
      }
      catch (Exception localException)
      {
        return (Customer[])(Customer[])JavaUtils.convert(localObject, [Lcom.openbravo.ws.customers.Customer.class);
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  public Customer getCustomer(String paramString1, String paramString2, String paramString3, String paramString4)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[1]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "getCustomer"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramString1, paramString2, paramString3, paramString4 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return (Customer)localObject;
      }
      catch (Exception localException)
      {
        return (Customer)JavaUtils.convert(localObject, Customer.class);
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  public Customer getCustomer(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[2]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "getCustomer"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramString1, paramString2, paramString3, paramString4, paramString5 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return (Customer)localObject;
      }
      catch (Exception localException)
      {
        return (Customer)JavaUtils.convert(localObject, Customer.class);
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  public boolean updateCustomer(BusinessPartner paramBusinessPartner, String paramString1, String paramString2)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[3]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "updateCustomer"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramBusinessPartner, paramString1, paramString2 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return ((Boolean)localObject).booleanValue();
      }
      catch (Exception localException)
      {
        return ((Boolean)JavaUtils.convert(localObject, Boolean.TYPE)).booleanValue();
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  public int[] getCustomerAddresses(String paramString1, String paramString2, String paramString3, String paramString4)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[4]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "getCustomerAddresses"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramString1, paramString2, paramString3, paramString4 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return (int[])(int[])localObject;
      }
      catch (Exception localException)
      {
        return (int[])(int[])JavaUtils.convert(localObject, [I.class);
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  public Location getCustomerLocation(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[5]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "getCustomerLocation"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramString1, paramString2, paramString3, paramString4, paramString5 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return (Location)localObject;
      }
      catch (Exception localException)
      {
        return (Location)JavaUtils.convert(localObject, Location.class);
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  public boolean updateAddress(Location paramLocation, String paramString1, String paramString2)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[6]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "updateAddress"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramLocation, paramString1, paramString2 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return ((Boolean)localObject).booleanValue();
      }
      catch (Exception localException)
      {
        return ((Boolean)JavaUtils.convert(localObject, Boolean.TYPE)).booleanValue();
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  public Contact getCustomerContact(String paramString1, String paramString2, String paramString3, String paramString4, String paramString5)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[7]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "getCustomerContact"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramString1, paramString2, paramString3, paramString4, paramString5 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return (Contact)localObject;
      }
      catch (Exception localException)
      {
        return (Contact)JavaUtils.convert(localObject, Contact.class);
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  public boolean updateContact(Contact paramContact, String paramString1, String paramString2)
    throws RemoteException
  {
    if (this.cachedEndpoint == null)
      throw new NoEndPointException();
    Call localCall = createCall();
    localCall.setOperation(_operations[8]);
    localCall.setUseSOAPAction(true);
    localCall.setSOAPActionURI("");
    localCall.setSOAPVersion(SOAPConstants.SOAP11_CONSTANTS);
    localCall.setOperationName(new QName("http://services.ws.erpCommon.openbravo.org", "updateContact"));
    setRequestHeaders(localCall);
    setAttachments(localCall);
    try
    {
      Object localObject = localCall.invoke(new Object[] { paramContact, paramString1, paramString2 });
      if ((localObject instanceof RemoteException))
        throw ((RemoteException)localObject);
      extractAttachments(localCall);
      try
      {
        return ((Boolean)localObject).booleanValue();
      }
      catch (Exception localException)
      {
        return ((Boolean)JavaUtils.convert(localObject, Boolean.TYPE)).booleanValue();
      }
    }
    catch (AxisFault localAxisFault)
    {
    }
    throw localAxisFault;
  }

  static
  {
    _initOperationDesc1();
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.ws.customers.WebServiceSoapBindingStub
 * JD-Core Version:    0.6.0
 */